home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / sound / speech recognition sample / mainfunctions.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  1.6 KB  |  55 lines

  1. /*
  2.     File:        MainFunctions.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by:     
  7.  
  8.     Copyright:    Copyright © 1996-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 8/2/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23. #ifndef __MAINFUNC__
  24. #define __MAINFUNC__
  25.  
  26. #include <String.h>
  27. #include <Types.h>
  28. #include <OSA.h>
  29. #include <Components.h>
  30. #include <AppleEvents.h>
  31. #include <Resources.h>
  32. #include <Sound.h>
  33. #include <Speech.h>
  34.  
  35. #ifndef __STRUCT__
  36. #include "Struct.h"
  37. #endif
  38.  
  39. OSErr    ParseRefCon            (SpeechInfoPtr theSpeechInfo,
  40.                             CommandPtr theCommand);
  41. OSErr    ChannelCommand        (long commandNumber);
  42. OSErr    LightCommand        (long commandNumber);
  43. OSErr    ScriptCommand        (long commandNumber);
  44. OSErr    PhoneCommand        (long commandNumber);
  45. OSErr    GameCommand            (long commandNumber);
  46. OSErr    StereoCommand        (long commandNumber);
  47. OSErr    TVCommand            (long commandNumber);
  48. OSErr    LaserdiskCommand    (long commandNumber);
  49. OSErr    VCRCommand            (long commandNumber);
  50. OSErr    VolumeCommand        (long commandNumber);
  51. OSErr    PlaySndCommand        (long commandNumber);
  52. OSErr    QuitCommand            (long commandNumber);
  53.  
  54. #endif
  55.